Dynamic random access memory persistent page implemented as processor register sets

ABSTRACT

The sense amplifier registers (SARs) servicing the arrays of a dynamic random access memory (DRAM) located on a semiconductor chip with a processor are all maintained at full power while unaccessed arrays are powered down to conserve power. Accessing circuits for the DRAM permit accessing by the processor of word length segments of each of the SARs independently of one another so that the SARs function as a read/write cache for the processor.

This application is a division of application Ser. No. 08/289,149 filed Aug. 12, 1994.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to random access memories particularly to such memories fabricated with microprocessors on a single semiconductor chip.

2. Prior Art

In today's denser dynamic random access memorys (DRAMs) memory cells are arranged in a plurality of small arrays. Each of these arrays has its own set of latches associated with its sense amplifiers. These sets of latches called sense amplifier registers (SARs) are used to access, with a single access, a plurality of memory cells. In such systems, it is common, in order to conserve power, to have any array not in present use, and its associated accessing circuits, powered down to a level that will not permit either reading or writing of data. As a result of this powering down, the average access time of the memory is increased since upon being accessed a powered down array must be powered back up before data may be read out of or written into the array.

In U.S. patent application Ser. No. 510,898 entitled "Integrated Circuit I/O Using a High Performance Bus Interface" and filed on Apr. 18, 1990, it has been suggested that, by selectively precharging the sense amplifiers or output latches of powered down arrays, those sense amplifiers and/or latches can be used in what has been called "a poor man's cache" in which data from previous fetches, retained in the sense amplifiers or latches, can be accessed by the processors.

In U.S. patent application Ser. No. 07/887,630 filed May 22, 1992 and entitled "Advanced Parallel Array Processor" (incorporated herein by reference) a relatively large register set is used as a cache for fast temporary storage in the transfer of data between micro processors and memory arrays on the same processor chip. These registers use up significant semiconductor chip real estate.

BRIEF DESCRIPTION OF THE INVENTION

In accordance with the present invention, the use of such separate register sets is avoided. In their place the sense amplifier registers (SARs) of a DRAM are used for fast, temporary storage. The SARs are maintained at full operating power while the memory arrays they service may be powered down. In addition, each SAR is segmented with the segments accessible separately from one another for both reading data out and writing data into the segments without accessing the arrays. With this arrangement, the powering down of the arrays is made transparent to the microprocessor and the SARs are accessed so as to function as a cache which is accessible by the microprocessor at all times. The more arrays that are used in random access memory and the greater the number of individually accessible segments in each SAR, the deeper is the cache that is provided.

Therefore, it is an object of the present invention to provide rapid data transfer to and from random access memory to processors located on the same semiconductor chip.

Another object of the invention is to allow processors to access data in the SARs for random access memory arrays independently of accessing data stored in the arrays themselves.

DESCRIPTION OF THE DRAWINGS

These and other objects of the invention can best be understood by reference in the accompanying figures of which:

FIG. 1 is a block diagram of logic elements on a semiconductor chip including a processor and a random access memory;

FIG. 2 is a block diagram showing logic circuits to access the SAR in one of the arrays of the random access memory in FIG. 1;

FIG. 3 is a layout for a Processor Data Word (PDW); and

FIG. 4 is a flow diagram illustrating the operation of the memory control logic for the memory in FIG. 1.

DESCRIPTION OF THE PREFERRED EMBODIMENT

Referring to FIG. 1, the dynamic random access memory (DRAM) 10 has storage cells of the memory arranged in N separate arrays SAO to SAj-1; each array containing M rows of N storage cells each. In the diagram, the first array SAO of the illustrated DRAM is shown in full while the intermediate arrays and the last array SAj-1 are represented by partially visible planes and dots. The arrays SAO to SAj-1, the processor 12, the row decoders 14, the sense amplifier registers 16, the clock generator 18, the address buffers 20, and other logic circuits on the chip are all well known and will be described only to the extent necessary to understand the present invention.

To conserve power, the arrays not in use are powered down (different DRAMs at different times) while the storage address registers 16 are powered up at all times so that the processor 12 can access data in the SARs of the DRAM 10 without concern about whether or not a particular array of the DRAM 10 containing that data is in a powered down state.

Independent access is provided to the SARs 16 by selector circuits 26 and router circuits 28. The router circuits 28 are to select the SAR of one array out of the SARs of all the arrays for reading or writing. The selector circuits are to permit selection of segments of a SAR independently of one another so that data may be entered or changed in one segment, multiple segments, or the whole SAR as required by the processor. There are two sets each of router and selector circuits. One set for entering data in the SAR from the output multiplexer (MUXOUT) of the processor 12 and the other set is to provide data stored in the SARs to the A and B multiplexers (MUX A and MUX B) of the processors.

The selector and router circuits and their operation can best be understood by reference to FIG. 2. As shown in that figure, each array segment SAj-n is made up M×N bits for storing M pages of N data bits each with each page stored in a different row of storage cells. The row decoder 14 for the DRAM selects one row in one array on each access. A string of data bits can be entered into the row or read from the row during that access. On being entered into a row or being read from a row of array SAj-n the string of data bits passes through the SARj-n for the array SAj-n. There is one stage in SARj-n for each bit position in the row.

Since only one row of data cells is accessed at a time, the string of data bits in the row can be referred to collectively as a page of data. Data bits in a page are arranged in a number of data words. For instance, if the page contains 256 eight bit bytes it could be divided into 32 words of 8, eight bit bytes each. The selector and routing circuits 26 and 28 respectively are arranged in sets to allow the RAW to access them selectively for reading and writing of individual data words in the page. In the example given, this means that each 8 byte word in a page stored in a SAR can be individually selected by the selector and router circuits 26 and 28 respectively to either read or change the data stored therein. Thus the SARs 16 function as a cache for the processor 12 in which all or part of the last accessed page of any array SAj-n can be obtained or changed without performing a full memory access just as if there was a separate cache to perform this type of access. For this purpose the clock generator 18 provides register address and memory address strobes (RAS and CAS respectively) that can be actuated so that the data in the SARs can be obtained without accessing the array segments.

Data is stored in the DRAM 10 in processor data words (PDWs). As shown in FIG. 3, a PDW contains data bits, memory address bits, a process control word and ECC bits protecting all the information stored in the PDW.

Referring to both FIGS. 1 and 4, memory address bits 32 used to access the DRAM are deconstructed, by the decoder 36 and address generator 38, from the PDW stored in the instruction register 34. The generated address bits include a memory access word (MAW) and a register address word (RAW). The RAW contains the address bits of the SARj-n of the array containing the desired page. They are sent to the RAW decoder 39 to activate the appropriate selector and router stages for the selection of SARj-n.

The low order m bits of the MAW, or bits A0 to Ai, are the row address bits of the DRAM. These low order bits are provided by the address buffer 20 to each of the row decoders 14 including the row decoded j-n of the array containing the desired page to select one of the M rows in each of the j array segments of the DRAM 10. The MAW also contains three additional bits or bits An+1 to An+3 which it provides to the clock generator 18. Those bits are the row address strobe (RAS), the column address strobe (CAS) and a read write bit R/W. The CAS and RAS bits determine the timing of the access to the arrays and SARs respectively while the R/W bit determines if data is to be read out of or written into the SAR or DRAM. The R/W bit selects the appropriate one of the router and selector circuit sets DI or DO for writing data in or reading data out of the SARj-n. When R/W is "0" it is a read operation and the DO sets are selected. When it is "1" it is write operation and the DI sets are selected.

Address bits in the PDW are compared 40 with address bits in the SAR directory 42. If this comparison of address bits results in a match, the RAS strobe is generated 42 allowing requested SAR to be accessed directly 44 using the Register Address Word (RAW). Data can then be written into or read out of the SARj-n directly 46 (without first accessing the array SAj-nenough row decoder j-n) by energizing the RAS and using the RAW to select the SAj-2.

If the address of the requested PDW is not found in the SAR directory by the compare 40, it is determined if the operation is a read or write operation. If it is a read operation the CAS is generated 50 and the memory address word (MAW) is used to read the page containing the desired PDW into the SAR 52 where it is accessed as before by energizing the RAS 54 and selecting the appropriate segments of the SARj-n using the RAW. Once the page is in the SAR, it is retained there until a subsequent read or write operation involving a different page from the same array. In the SAR it is available for possible access by the processor during a future request. If a write operation is performed the RAS is energized 58 and the SAR selected 60 just as if the PDW was in the SAR. Write operations always require later entry of data into the array whether or not the selected page was initially in the SAR.

To summarize, the PDW request by the processor is loaded into the instruction register 34. Instruction register 34 is the first-in first-out register where the address portion of the PDW is loaded one at a time into the address generator 38 generating the MAW and RAW addresses as previously described. The address bits of the PDW are compared to corresponding bits stored in the SAR directory 42 to determine if the requested information is stored in one of the SARs. If it is in a SAR 16 the arrays are bypassed and the output buffers are accessed directly with the RAW for both reading and writing. If the address is not in the RAW the arrays and SARs are accessed in the usual manner.

It can be seen from the above described embodiment of the invention that previously accessed data pages retained in the SAR 16 of a DRAM memory can be accessed independently of the accessing of the arrays of the DRAM. A number of modifications can be made in this embodiment. For instance, there may be more than one processor on the semiconductor chip. In which case the DRAM 10 would be divided into separate parts each part accessed exclusively by one of the processors. All other variation would be to access two or more SARs at the same time to increase the page size. Therefore, it should be understood that the invention is not limited to the particular embodiment disclosed but should be interpreted in view of the spirit and scope of the appended claims. 

We claim:
 1. A memory device comprising:a) a storage array for storing data as a plurality of data bits, said storage array arranged to have at least two storage segments, with data cells, for storing said data bits, in each storage segment arranged in rows and columns; b) address means connected to said storage array for addressing a row of data cells in any storage segment collectively or separately with addressing a row of data cells within any other storage segment for writing data into or fetching data from said storage array; c) a plurality of sense amplifiers connected to each said storage segment said sense amplifiers for detecting data bits in said storage array; d) a plurality of sense amplifier registers connected to said sense amplifiers, said sense amplifier registers for storing the data bits being written into or fetched from a row of data bits in said storage array; e) said sense amplifiers and sense amplifier registers arranged in a plurality of groups, said groups corresponding in number to the number of storage segments of said storage array; f) control means connected to said sense amplifier registers having maintaining means for maintaining in said sense amplifier registers the last row of data bits from each storage segment either written into or fetched from said storage array; g) said control means connected to said sense amplifier registers also having activating means for activating or deactivating the group of sense amplifier registers corresponding to each storage segment either collectively with or separately from the sense amplifier registers of any other storage segment; h) selection means being connected to said address means for selecting either a portion or all of the data bits stored in said groups of sense amplifier registers; i) compare means connected to said address means for comparing the address of the last row of data bits stored in any group of said sense amplifier registers with the address of a row of data bits to be fetched next from said storage means by said address means; and j) output means connected to said compare means, said activating means and said sense amplifier registers for bypassing said storage array and directly outputting the last row of data bits stored in said sense amplifier registers when the last row of data bits in said sense amplifier registers has the same address as the next row of data bits to be fetched from said storage array so that the data bits of the next row to be fetched can be outputted without accessing said storage array; k) said output means connected to said control means and said groups of sense amplifier registers allowing data bits stored in either a portion of or all the groups of sense amplifier registers to be written into or fetched from said groups of the sense amplifier registers.
 2. The memory device of claim 1 including:powering means coupled to said storage segments and said sense amplifier registers for periodically powering down any storage segment while sense amplifier registers in the sense amplifier register group associated with any powered down storage segment are maintained at full power. 